jQuery.extend({
	mathsetAsynHandler: function(url, params, callback, dataType, contentType, async) {
		var data = '';
		var dt = 'string';
		var ay = true;
		var ct = 'application/x-www-form-urlencoded; charset=UTF-8';
		if(dataType != 'undefined') {
			dt = dataType;
		}
		if(async != 'undefined') {
			ay = async;
		}
		if(contentType != 'undefined') {
			ct = contentType;
		}
		$.ajax({
		    type: 'post',
		    contentType : ct,
	        dataType : dt,
		    url: url,
		    timeout: 300000,
		    data: params,
		    async: ay,
		    success: function(responseData){
		    	data = responseData;
		    },
		    complete: function(jqXHR, textStatus ) {
		    	if(jqXHR.status == 200) {
		    		callback(data);
		    	} else if(jqXHR.status == 404) {
		    		
		    	} else if(jqXHR.status == 503) {
		    		
		    	}
		    }
		});
	}
});